package com.ccit.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ccit.model.GoodsOrder;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsOrderService extends IService<GoodsOrder> {
    //添加新订单
    Boolean saveOrder(GoodsOrder goodsOrder);
    //根据手机号查询订单
    List<GoodsOrder> findGoodsOrderByPhone(String phone);
    //根据商品号查询订单
    List<GoodsOrder> findGoodsOrderByGoodsId(Long goodsId);
    //根据商品号和手机号查询订单
    List<GoodsOrder> findGoodsOrderByGoodsIdAndPhone(Long goodsId,String phone);
    //条件查询
    List<GoodsOrder> findGoodsOrderList(GoodsOrder order);
    //查询所有
    List<GoodsOrder> findAllOrder();
}
